package pl.cba.solgar.game.rogal.utils;

public class BSTNode<T> {
	private int key;
	private T value;
	private BSTNode<?> left;
	private BSTNode<?> right;
	private BSTNode<?> parent;

	public BSTNode(int key, T value) {
		this.key = key;
		this.value = value;
	}

	public BSTNode<?> getLeft() {
		return left;
	}

	public void setLeft(BSTNode<?> node) {
		this.left = node;
	}

	public BSTNode<?> getRight() {
		return right;
	}

	public void setRight(BSTNode<?> right) {
		this.right = right;
	}

	public int getKey() {
		return key;
	}

	public T getValue() {
		return value;
	}

	public BSTNode<?> getParent() {
		return parent;
	}

	public void setParent(BSTNode<?> parent) {
		this.parent = parent;
	}
}
